package com.quzhi.sys.dto;

import com.quzhi.sys.entity.Order;
import com.quzhi.sys.entity.OrderLog;
import com.quzhi.sys.entity.OrderSerialNumber;

import java.util.ArrayList;
import java.util.List;

public class OrderDto extends Order {

    private Long pageNo;
    private Long pageSize;

    private Integer total;

    List<OrderSerialNumber> SerialNumbers = new ArrayList<>();

    List<OrderLog> orderLogs = new ArrayList<>();


    public Long getPageNo() {
        return pageNo;
    }

    public void setPageNo(Long pageNo) {
        this.pageNo = pageNo;
    }

    public Long getPageSize() {
        return pageSize;
    }

    public void setPageSize(Long pageSize) {
        this.pageSize = pageSize;
    }


    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public List<OrderSerialNumber> getSerialNumbers() {
        return SerialNumbers;
    }

    public void setSerialNumbers(List<OrderSerialNumber> serialNumbers) {
        SerialNumbers = serialNumbers;
    }

    public List<OrderLog> getOrderLogs() {
        return orderLogs;
    }

    public void setOrderLogs(List<OrderLog> orderLogs) {
        this.orderLogs = orderLogs;
    }

    @Override
    public String toString() {
        return "OrderDto{" +
                "pageNo=" + pageNo +
                ", pageSize=" + pageSize +
                ", total=" + total +
                ", SerialNumbers=" + SerialNumbers.toString() +
                ", getOrderLogs=" + orderLogs.toString() +
                '}';
    }
}
